import { v4 as uuid } from "uuid";

export default function getUserTempId() {
  //判断本地存储内部是否有用户唯一标识
  let userId = localStorage.getItem("USERTEMPID");
  if (!userId) {
    userId = uuid();
    localStorage.setItem("USERTEMPID", userId);
  }
  return userId;
}
